#include<bits/stdc++.h>
#define int long long
using namespace std;
int n,a[100050];
signed main()
{
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for (int i=1;i<=n;i++)cin>>a[i];
    sort(a+1,a+n+1);
    if (n==1)
    {
        cout<<1;
        return 0;
    }
    int l=1,r=2;
    while (r<=n)
    {
        if (a[l]<a[r])l++;
        r++;
    }
    if (r>n)r=n;
    cout<<(r-l+1)<<endl;
    return 0;
}
